﻿# buffer_test/CMakeLists.txt
cmake_minimum_required(VERSION 3.10)

project(buffer_test)

set(CMAKE_CXX_STANDARD 11)


# 添加可执行文件
add_executable(${PROJECT_NAME} 
    main.cc
    ${CMAKE_SOURCE_DIR}/../src/buffer.cpp
)
# 添加头文件路径
target_include_directories(${PROJECT_NAME} PRIVATE 
    ${CMAKE_SOURCE_DIR}/../src
)

# 链接需要的库
target_link_libraries(${PROJECT_NAME}
    pthread
)
